var app = sm("do_App");
var page = sm("do_Page");
var root = ui("$");
var circleView = ui("circleView");
var circleData = mm("do_ListData");
//设置数据绑定的映射关系
root.setMapping({
	"circleView.tag" : "circleBaseList",
	"title.text" : "title"
});
root.on("dataRefreshed", function(){
	circleData.removeAll();
	var dataActivity = JSON.parse(circleView.tag);
	circleView.bindItems(circleData);
	if(dataActivity.length > 0){
		circleData.addData(dataActivity);
	}
	else{
		circleData.addData([{"template":1}]);
	}
	circleView.refreshItems();
})